home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-13
/
me_cd22.zip
/
MUTT2.ZIP
/
REQUIRE.MUT
< prev
next >
Wrap
Text File
|
1992-04-27
|
750b
|
22 lines
;; require.mut : Lisp like require. This code lets Mutt programs require
;; that certain modules be loaded.
;; To use: In the MAIN rouine of your program file, add
;; (require Mutt-module-needed-by-this-program)
;; (for example (require "foo.mut") or (require "foo")) and when your
;; program is loaded it will load foo.mco if it hasn't been already.
;; Notes:
;; It would be a good idea to be able to (require "foo" "bar" ...)
;; C Durland 10/89 redone 9/91 Public Domain
(defun
require (string Mutt-code-file)
{
(arg-prefix 42) ;; secret code to maybe load
(if (not (load Mutt-code-file)) ;; if can't load code
{
(msg "require: Could not load " Mutt-code-file)
(halt)
})
}
)